import com.adobe.cairngorm.control.CairngormEventDispatcher;

import net.optix.ip.events.GetTradeSecretsEvent;
import net.optix.ip.model.ModelLocator;
import net.optix.ip.vo.TradeSecretVO;
[Bindable]
private var model:ModelLocator	=	ModelLocator.getInstance();

[Bindable]
private var secret:TradeSecretVO;

private function selectSecret():void
{
	trace(secrets.selectedItem+"secrets.selectedItem");
	try
	{
		secret	=	TradeSecretVO(secrets.selectedItem);	
		intShow	=	0;
	}
	catch(error:Error){}
}

[Bindable]
private var intShow:int	=	-1;

private function showRecord():void
{
	intShow	=	1;
}

private function back():void
{
	intShow	=	0;
}

private function initApp():void
{
	var getTradeSecrets:GetTradeSecretsEvent	=	new GetTradeSecretsEvent(model.client.clientID);
	com.adobe.cairngorm.control.CairngormEventDispatcher.getInstance().dispatchEvent(getTradeSecrets);
}